#! /bin/sh

#set host name, and need to make a file "host"  
export HOSTNAME=BXGroup

hostname ${HOSTNAME}


# mount all filesystem defined in "fstab"

echo "# mount all..........."

/bin/mount -a



#/bin/chmod 0666 /dev/null


echo "# Starting mdev........."

/bin/echo /sbin/mdev > /proc/sys/kernel/hotplug

mdev -s


echo "*********************************************************"

echo "          BX Linux-2.6.11 nfs boot "

echo "                  2016-06-30 "

echo "********************************************************"

echo

 

echo "# Starting telnet service........."

# 使用telnetd所必须的设备文件节点
#mknod -m 777 /dev/ptmx c 5 2 

# 将devpts文件系统加载在/dev/pst
mkdir /dev/pts
mount -t devpts devpts /dev/pts

# /sbin/inetd &
/sbin/telnetd &
